package com.zjb.demo.common.domain.dto;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author 庄佳彬
 * @since 2023/12/24 22:15
 */
@Table("sys_logininfor")
public class SysLoginInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 信息ID，自动生成
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.flexId)
    @Column("info_id")
    private Long infoId;

    /**
     * 用户名
     */
    @Column("user_name")
    private String userName;


    /**
     * 状态 0正常，1异常
     */
    @Column("status")
    private String status;

    /**
     * IP地址
     */
    @Column("ipaddr")
    private String ipaddr;

    /**
     * 登录位置
     */
    @Column("login_location")
    private String loginLocation;

    /**
     * 浏览器
     */
    @Column("browser")
    private String browser;

    /**
     * 操作系统
     */
    @Column("os")
    private String os;

    /**
     * 消息
     */
    @Column("msg")
    private String msg;

    /**
     * 登录时间
     */
    @Column("login_time")
    private Date loginTime;

    public long getInfoId() {
        return infoId;
    }

    public void setInfoId(long infoId) {
        this.infoId = infoId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
}
